package com.dgut.coal.service.impl;

import com.dgut.coal.dao.SupplyDao;
import com.dgut.coal.entity.Supply;
import com.dgut.coal.service.SupplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplyServiceimpl implements SupplyService {
    @Autowired
    SupplyDao sd;

    @Override
    public Supply findByName(String supply_name) {
        return sd.findByName(supply_name);
    }

    //查看供应商的简要信息
    public List<Supply> findsimplesupply(Integer supply_id,String supply_name){
        return sd.findsimplesupply(supply_id,supply_name);
    }

    @Override
    public List<Supply> findallsupply() {
        return sd.findallsupply();
    }

    @Override
    public int putblacklist(String supply_name,String blacklist_msg) {
        return sd.putblacklist(supply_name,blacklist_msg);
    }

    @Override
    public int changecategory(String supply_name, String category) {
        return sd.changecategory(supply_name,category);
    }

    @Override
    public String getcategory(String supply_name) {
        return sd.getcategory(supply_name);
    }

    @Override
    public int changeexamine(String supply_name) {
        return sd.changeexamine(supply_name);
    }

    @Override
    public int rejectmsg(String supply_name, String reject_msg) {
        return sd.rejectmsg(supply_name,reject_msg);
    }


}
